<template>
	<view class="full-img-window" v-if="showFullImg"  @click="showFullImg = false">
		<image :src="imgUrl" class="full-img" mode="widthFix"></image>
	</view>
</template>

<script>
	export default {
		name:"fullImageWindow",
		data() {
			return {
				showFullImg:false,
				imgUrl:''
			};
		},
		
		created() {
		},
		
		methods:{
			changeImageUrl(url){
				this.imgUrl = url
			}
		}
		
	}
</script>

<style lang="scss">
	.full-img-window{
		width: 100%;
		height: 100vh;
		position: fixed;
		top: 0;
		z-index: 1000;
		background: rgba(0, 0, 0, 0.5);
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		
		.full-img{
			width: 100%;
		}
		
	}
</style>